package com.echartsdata.Entityimp;

import com.alibaba.fastjson2.JSONObject;
import com.echartsdata.Mapper.EmploymentMapper;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

//就业查询
@Component
public class Employmentimp {
    @Resource
    private EmploymentMapper employment;
    public String get_list(){
        System.out.print("看看就获取的什么数据---"+employment.getlist());
        //返回json数据
        JSONObject json = new JSONObject();
        json.put("data", employment.getlist());
        System.out.println("获取就业统计jsonjson数据"+json.toString());
        return json.toJSONString();
    }
}
